<?php

/**
 * Subclass for representing a row from the 'cms_product' table.
 *
 * 
 *
 * @package lib.model
 */ 
class CmsProduct extends BaseCmsProduct
{
    protected $qtyInCart;

    public function setQtyInCart($q)
    {
        $this->qtyInCart = $q;
    }

    public function getQtyInCart()
    {
        return $this->qtyInCart;
    }

    public function getTotalAmount()
    {
        return $this->qtyInCart * $this->getPrice();
    }
}
